dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b060d
)
Upper-case DOCTYPE in HTML5 for well-formedness
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 12 Nov 2009 03:11:56 +0000
(
03:11
+0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 12 Nov 2009 03:11:56 +0000
(
03:11
+0000)
Apparently <!doctype html> is a syntax error in XML; <!DOCTYPE html> is
required. Now I know. This broke Twinkle and probably lots of other stuff, so
it would be good to sync this ASAP. Sorry for the error.
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
4896cd0
..
47e785d
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-1791,7
+1791,7
@@
class OutputPage {
$dir = $wgContLang->getDir();
if ( $wgHtml5 ) {
- $ret .= "<!
doctype
html>\n";
+ $ret .= "<!
DOCTYPE
html>\n";
$ret .= "<html lang=\"$wgContLanguageCode\" dir=\"$dir\">\n";
} else {
$ret .= "<!DOCTYPE html PUBLIC \"$wgDocType\" \"$wgDTD\">\n";